<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
		*{ /*权值 0  很容易覆盖*/
			color: #7dee6b !important;
			background: #ee68e3 !important;
		}
		div{/*权值 1*/
			color: #0e0eee;
			background: #ee1e3e;
		}
		.d1{/*权值10*/
			color: #e0ee41;
			background: #eed6c7;
		}
		div.d1{/*选择器权值之和 权值11*/
			color: #d3e1ee;
			background: #a0a0ee;
		}
		body div.d1{/*权值 12*/
			font-size: 25px;
		}
		#d1{/*权值100*/
			font-size: 15px;
		}
		div#d1{/*权值101*/
		font-size: 20px;
			color: #73eee4;
			background: #4aee8b;
		}
		div#d1:hover{/*权值111*/
			font-size: 30px;
		}
		</style>
		
	</head>
	<body>
		<div class="d1" id="d1" style="color: red;">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Aliquam quis alias optio praesentium sit rem, molestiae dolor id eius. Iusto unde similique nulla. Sit odit cumque obcaecati pariatur doloribus nam?</div>
	</body>
</html>